package com.stx.threeGrup.service;

import com.stx.threeGrup.model.automodel.LoveBoke;

import java.util.List;

/**
 * Created by Administrator on 2019/6/12
 */
public interface LoveBokeService {

    /**
     *
     * @return
     */
    List<LoveBoke> queryNewsAll();

    /**
     *
     * @param loveBokeId
     * @return
     */
    LoveBoke queryNewsById(Integer loveBokeId);
    /**
     *
     * @param loveBokeId
     * @return
     */
    boolean delNewById(Integer loveBokeId);

    /**
     *
     * @param loveBokeId
     * @return
     */
    boolean updateNewById(Integer loveBokeId);


    List<LoveBoke> queryNewAllById(Integer userId);

    /**
     * 根据用户id和新闻id删除
     * @param loveBoke
     * @return
     */
    boolean delNewByUserIdAndNesId(LoveBoke loveBoke);

    boolean addNewByUserId(LoveBoke loveBoke);


}
